<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div class="layui-layout layui-layout-admin " th:fragment="header">
	<div class="layui-header">
		<div class="layui-logo">
			<i class="layui-icon" style="font-size: 30px;">&#xe62e;</i> 爱打印
		</div>
		<ul class="layui-nav layui-layout-left layui-hide-xs">
			<li class="layui-nav-item ">
				<a th:href="@{/index}">
					<i class="layui-icon" style="font-size: 30px;">&#xe68e;</i> 首页
				</a>
			</li>
			<li class="layui-nav-item ">
				<a th:href="@{/items/document}">
					<i class="layui-icon" style="font-size: 30px;">&#xe60a;</i> 文档打印
				</a>
			</li>
			<li class="layui-nav-item ">
				<a th:href="@{/items/photo}">
					<i class="layui-icon" style="font-size: 30px;">&#xe64a;</i> 照片打印
				</a>
			</li>
			<li class="layui-nav-item ">
				<a th:href="@{/items/idphoto}">
					<i class="layui-icon" style="font-size: 30px;">&#xe613;</i> 证件打印
				</a>
			</li>
			<li class="layui-nav-item ">
				<a th:href="@{/items/leaflet}">
					<i class="layui-icon" style="font-size: 30px;">&#xe630;</i> 单页打印
				</a>
			</li>
			<li class="layui-nav-item ">
				<a href=""> 
					<i class="layui-icon" style="font-size: 30px;">&#xe756;</i> 最新动态
				</a>
			</li>
		</ul>
			<ul class="layui-nav layui-layout-right layui-hide-xs" th:if="${session.user != null}">
				<li class="layui-nav-item ">
					<a href="javascript:;">
						<img th:src="@{/img/id.png}" class="layui-nav-img">
						<span th:if="${session.user.nikename == null}" th:text="${session.user.name}"></span>
						<span th:if="${session.user.nikename != null}" th:text="${session.user.nikename}"></span>
					</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="">个人中心</a>
						</dd>
						<dd>
							<a th:href="@{/logout}">退了</a>
						</dd>
					</dl>
				</li>
			</ul>



		<ul class="layui-nav layui-layout-right layui-hide-xs" th:if="${session.user == null}">
			<li class="layui-nav-item ">
				<a th:href="@{/login}" > 用户登陆 </a>
			</li>
			<li class="layui-nav-item ">
				<a th:href="@{/admin/login }" > 商家登陆 </a>
			</li>
			<li class="layui-nav-item ">
				<a th:href="@{/register }" > 注册 </a>
			</li>
		</ul>

		<!--小屏幕显示-->
		<ul
			class="layui-nav layui-layout-right layui-hide-lg layui-hide-md layui-hide-sm">
			<li class="layui-nav-item "><a href="javascript:;"> 导航列表 </a>
				<dl class="layui-nav-child">
					<dd>
						<a th:href="@{/items/document }">文档打印</a>
					</dd>
					<dd>
						<a th:href="@{/items/photo }">照片打印</a>
					</dd>
					<dd>
						<a th:href="@{/items/idphoto }">证件打印</a>
					</dd>
					<dd>
						<a th:href="@{/items/leaflet }">单页打印</a>
					</dd>
					<dd>
						<a href="">最新动态</a>
					</dd>
					<div th:if="${session.user == null}">
						<dd>
							<a th:href="@{/login }" > 登陆 </a>
						</dd>
						<dd>
							<a th:href="@{/register }" > 注册 </a>
						</dd>
					</div>
					<dd th:if="${session.user != null}">
						<a href="" > 个人中心</a>
					</dd>
				</dl>
			</li>
		</ul>
	</div>
</div>
</html>